export const openPage = (data) => {
    return {
        type: 'OPEN_PAGE',
        data
    }
}

export const changePageState = (data) => {
    return {
        type: 'CHANGE_PAGE_STATE',
        data
    }
}

export const submit = (data) => {
    return {
        type: 'SUBMIT_RESERVATION',
        data
    }
}

export const changeMapState = (data) => {
    return {
        type: 'CHANGE_MAP_STATE',
        data
    }
}

export const submitSpot = (data) => {
    return {
        type: 'SUBMIT_SPOT',
        data
    }
}

export const changeSelectedSpot = (data) => {
    return {
        type: 'CHANGE_SELECTED_SPOT',
        data
    }
}

export const searched = (data) => {
    return {
        type: 'SEARCHED',
        data
    }
}

export const clearSearched = (data) => {
    return {
        type: 'CLEAR_SEARCHED',
        data
    }
}


